﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="BJXXListNeedConfirmReturn.aspx.cs" Inherits="WXYW.BJXXListNeedConfirmReturn" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    备件申请单-待归还
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="BJXXFormsGridView" runat="server" CssClass="tableList"
        BorderWidth="1px" BorderColor="#888888" AutoGenerateColumns="False" AllowPaging="True"
        PageSize="20" OnPageIndexChanging="BJXXFormsGridView_PageIndexChanging" Width="100%"
        OnRowDataBound="BJXXFormsGridView_RowDataBound" OnDataBound="BJXXFormsGridView_DataBound"
        OnMustAddARow="GridView_MustAddARow">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="流水号">
                <ItemTemplate>
                    <%#Eval("ApplicationForm.RunningNumber")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <%#Eval("ApplicationForm.User.FullName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="SP单号" DataField="SPCode" />
            <asp:TemplateField HeaderText="产品型号">
                <ItemTemplate>
                    <%#Eval("ProductType.ProductTypeName") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="产品序列号" DataField="ProductSerialNumber" />
            <%--<asp:TemplateField HeaderText="申请日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationForm.ApplicationDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="发货日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("BJXXSendToClient")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="收货日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("BJXXClientReceive")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="保修性质" DataField="ProductRepairType" />
            <asp:BoundField HeaderText="状态" DataField="Status" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" alt="" />
                    <asp:LinkButton ID="viewLinkButton" OnClick="viewLinkButton_click" CommandArgument='<%#Eval("ApplicationProductID") %>'
                        runat="server">查看</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= RecordsNumber%></span>条, <span style="color: Red">20</span>条/页
            当前 <span style="color: Red">
                <%= BJXXFormsGridView.PageIndex + 1%>/<%= BJXXFormsGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
